import React, { useEffect } from 'react'
import http from '@/utils/http';
/**
 * dev  http://localhost:3002/goods
 * 
 * production  http://api.xiaohigh.com/goods
 * 
 */
export default function EnvCom() {
  //useEffect 
  useEffect(() => {
    let getData = async () => {
      // /dev/goods
      let result = await http.get(`/goods`);
      console.log(result);
    }
    getData();
  }, []);

  return (
    <div>06_ProxyCom</div>
  )
}
